// 开发环境配置
const { web } = require("webpack");
const webpack = require("webpack");
const { merge } = require("webpack-merge");
const common = require("./webpack.common");
const isProd = false
module.exports = merge(common, {
  mode: "development",
  // webpack5 不能使用 cheap-eval-module-source-map，改为 cheap-module-source-map
  devtool: 'cheap-module-source-map',
  // 解决浏览器不自动刷新问题
  target: 'web',
  devServer: {
    port: 8888,
    contentBase: "public"
  }
});
